﻿using System;
using TianShu.SysParameterSetting.DAL.Abstracts;
using TianShu.TenantManagement.Dal.Abstracts;
using Volo.Abp.Modularity;
using Volo.Abp.MultiTenancy;
using Volo.Abp.SqlSugarCore;
using Volo.Abp.SqlSugarCore.Configs;

namespace Test.DAL.Abstracts
{
    [DependsOn(
        typeof(TianShuSqlSugarCoreModule),
        typeof(AbpMultiTenancyModule),
        typeof(TianShuSysParameterSettingDALAbStractsModule),
        typeof(TianShuTenantManagementDalAbstractsModule)
        )]
    public class TestDALAbStractsModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {

            Configure<SugarAutoGeneratorTableOptions>(opt =>
            {
                opt.Add(typeof(TestDALAbStractsModule));
                opt.CreateDatabase();
            });
        }
    }
}
